package com.stone.sys.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TBdzJg entity. @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "SYS_BDZ_JG")

public class TBdzJg implements java.io.Serializable,Cloneable {

	 // Fields

    private Long id;
    
    /**
     * 变电站id
     */
    private Long bdzid;
    
    
    /**
     * 间隔编号
     */
    private String jgbh;
    
    /**
     * 间隔名称
     */
    private String jgmc;

    /**
     * 电压等级
     */
    private String dydj;

    /**
     * 间隔类型
     */
    private String jglx;
  
    /**
     * 投运日期
     */
    private Date tyrq;

    /**
     * 1：间隔 2：屏柜
     */
    private String state;
    /**
     * 屏柜的上级间隔ID
     */
    private Long parentid;
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_BDZ_JG")
    @SequenceGenerator(name="SEQ_BDZ_JG",allocationSize=1, sequenceName="SEQ_BDZ_JG")
	public Long getId() {
		return id;
	}

	public Long getBdzid() {
		return bdzid;
	}

	public void setBdzid(Long bdzid) {
		this.bdzid = bdzid;
	}

	public String getJgbh() {
		return jgbh;
	}

	public void setJgbh(String jgbh) {
		this.jgbh = jgbh;
	}

	public String getJgmc() {
		return jgmc;
	}

	public void setJgmc(String jgmc) {
		this.jgmc = jgmc;
	}

	public String getDydj() {
		return dydj;
	}

	public void setDydj(String dydj) {
		this.dydj = dydj;
	}

	public String getJglx() {
		return jglx;
	}

	public void setJglx(String jglx) {
		this.jglx = jglx;
	}

	public Date getTyrq() {
		return tyrq;
	}

	public void setTyrq(Date tyrq) {
		this.tyrq = tyrq;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	public Long getParentid() {
		return parentid;
	}

	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

	@Override
	public Object clone() throws CloneNotSupportedException {		
		return super.clone();
	}

    
}